using System.ComponentModel.DataAnnotations;

namespace RabbitTraceability.Api.Dtos.Request
{
    /// <summary>
    /// 验证验证码请求DTO
    /// </summary>
    public class VerifyCaptchaRequestDto
    {
        /// <summary>
        /// 验证码GUID
        /// </summary>
        [Required(ErrorMessage = "验证码GUID不能为空")]
        public string Guid { get; set; } = string.Empty;

        /// <summary>
        /// 用户输入的验证码
        /// </summary>
        [Required(ErrorMessage = "验证码不能为空")]
        [StringLength(10, MinimumLength = 1, ErrorMessage = "验证码长度为1-10位")]
        public string Code { get; set; } = string.Empty;
    }
}